
<table>
<thead><tr>
<th>班級</th><th>課程</th><th>節數</th><th>操作</th></tr>
</thead>
<tbody>
<?php foreach($this->data as $val):?>
<?php $classId = $val['grade'].'-'.$val['class_sn'];?>
<tr><td><a class="sel-class"  href="#" id="c-<?php echo $classId?>"><?php echo  $this->class_arr[$classId]?></a></td>
<td><?php echo  $val['name']?></td>
<td class="c-num"><?php echo  $val['number']?></td>
<td><a href="#" class="delcourse" id="d-<?php echo  $val['sn']?>">刪除</a></td>
</tr>
<?php endforeach;?>
</tbody>
</table>